var express = require('express')
var router = express.Router();
const { result } = require('underscore');
var { createToken, checkToken } = require('../utils/token')


router.get("/text", (req, res) => {
    res.json({
        code: 200,
        msg: "测试接口成功 successful"
    })
})


//获取  crsftoken
router.get("/gettoken", (req, res) => {
    // var token = createToken('wh')
    res.json({
        token: "token",
        msg: '获取token成功',
        type: '1',
        code: 200
    })
})